package org.lemon.cla.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.lemon.cla.enums.FeedbackTypeEnum;

@Data
@Schema(description = "应用反馈创建请求对象")
public class FeedbackCreateRequest {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID", example = "101", required = true)
    private Long userId;

    @NotNull(message = "反馈类型不能为空")
    @Schema(description = "反馈类型", example = "建议", allowableValues = {"错误", "建议", "投诉", "其他"}, required = true)
    private FeedbackTypeEnum feedbackType;

    @NotBlank(message = "反馈内容不能为空")
    @Schema(description = "反馈内容", example = "希望App能增加夜间模式。", required = true)
    private String content;

    @Schema(description = "联系方式", example = "13812345678")
    private String contact;

    // create_time, status, reply, reply_time 由后端自动设置，无需客户端传入
}